﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>用户管理</title>

    <!-- Bootstrap framework -->
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css" />
    <!-- jQuery UI theme -->
    <link rel="stylesheet" href="/lib/jquery-ui/css/Aristo/Aristo.css" />
    <!-- tooltips-->
    <link rel="stylesheet" href="/lib/jBreadcrumbs/css/BreadCrumb.css" />
    <!-- tooltips-->
    <link rel="stylesheet" href="/lib/qtip2/jquery.qtip.min.css" />
    <!-- colorbox -->
    <link rel="stylesheet" href="/lib/colorbox/colorbox.css" />
    <!-- code prettify -->
    <link rel="stylesheet" href="/lib/google-code-prettify/prettify.css" />
    <!-- sticky notifications -->
    <link rel="stylesheet" href="/lib/sticky/sticky.css" />
    <!-- aditional icons -->
    <link rel="stylesheet" href="/img/splashy/splashy.css" />
    <!-- flags -->
    <link rel="stylesheet" href="/img/flags/flags.css" />
    <!-- datatables -->
    <link rel="stylesheet" href="/lib/datatables/extras/TableTools/media/css/TableTools.css">

    <!-- calendar -->
    <link rel="stylesheet" href="/lib/fullcalendar/fullcalendar_gebo.css" />

    <!-- main styles -->
    <link rel="stylesheet" href="/css/style.css" />
    <!-- theme color-->
    <link rel="stylesheet" href="/css/blue.css" id="link_theme" />

    <!--             <link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'> -->
    <!-- favicon -->
    <link rel="shortcut icon" href="favicon.ico" />

    

    <script src="/Scripts/jquery.min.js"></script>
    <script src="/Scripts/jquery-migrate.min.js"></script>
    <script src="/lib/jquery-ui/jquery-ui-1.10.0.custom.min.js"></script>
    <!-- touch events for jquery ui-->
    <script src="/Scripts/forms/jquery.ui.touch-punch.min.js"></script>
    <!-- easing plugin -->
    <script src="/Scripts/jquery.easing.1.3.min.js"></script>
    <!-- smart resize event -->
    <script src="/Scripts/jquery.debouncedresize.min.js"></script>
    <!-- js cookie plugin -->
    <script src="/Scripts/jquery_cookie_min.js"></script>
    <!-- main bootstrap js -->
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <!-- bootstrap plugins -->
    <script src="/Scripts/bootstrap.plugins.min.js"></script>
    <!-- typeahead -->
    <script src="/lib/typeahead/typeahead.min.js"></script>
    <!-- code prettifier -->
    <script src="/lib/google-code-prettify/prettify.min.js"></script>
    <!-- sticky messages -->
    <script src="/lib/sticky/sticky.min.js"></script>
    <!-- tooltips -->
    <script src="/lib/qtip2/jquery.qtip.min.js"></script>
    <!-- lightbox -->
    <script src="/lib/colorbox/jquery.colorbox.min.js"></script>
    <!-- jBreadcrumbs -->
    <script src="/lib/jBreadcrumbs/js/jquery.jBreadCrumb.1.1.min.js"></script>
    <!-- hidden elements width/height -->
    <script src="/Scripts/jquery.actual.min.js"></script>
    <!-- custom scrollbar -->
    <script src="/lib/slimScroll/jquery.slimscroll.js"></script>
    <!-- fix for ios orientation change -->
    <script src="/Scripts/ios-orientationchange-fix.js"></script>
    <!-- to top -->
    <script src="/lib/UItoTop/jquery.ui.totop.min.js"></script>
    <!-- mobile nav -->
    <script src="/Scripts/selectNav.js"></script>
    <!-- common functions -->
    @*<script src="/Scripts/gebo_common.js"></script>*@
    <!-- validation -->
    <script src="/lib/validation/jquery.validate.min.js"></script>
    <!-- wizard -->
    <script src="/lib/stepy/js/jquery.stepy.min.js"></script>
    <!-- wizard functions -->
    @*<script src="/Scripts/gebo_wizard.js"></script>*@

    <script src="@Url.Content("~/Scripts/json2.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Scripts/dynatree/skin-vista/ui.dynatree.css")" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/dynatree/jquery.dynatree.min.js")" type="text/javascript"></script>

    <!--[if lte IE 8]>
        <link rel="stylesheet" href="css/ie.css" />
    <![endif]-->
    <!--[if lt IE 9]>
        <script src="js/ie/html5.js"></script>
        <script src="js/ie/respond.min.js"></script>
        <script src="/lib/flot/excanvas.min.js"></script>
    <![endif]-->

</head>
<body onload="iframeAutoFit()">


    <div id="jCrumbs" class="breadCrumb module">
        <ul>
            <li>
                <a href="#"><i class="glyphicon glyphicon-home"></i></a>
            </li>
            <li>
                <a href="#">首页</a>
            </li>
            <li>
                <a href="#">导航</a>
            </li>
            <li>
                <a href="#">栏目</a>
            </li>
            <li>
                <a href="#">内容</a>
            </li>
            <li>
                用户管理
            </li>
        </ul>
    </div>
    <div class="row">
        <div class="col-sm-2 col-md-2">
            <h3 class="heading">用户列表</h3>
            @Html.Partial("UserChooseTree")
        </div>
        <div class="col-sm-10 col-md-10">

            <iframe id="contentframe" name="contentframe" frameborder="0" scrolling="no" src="" width="100%" height="100%"></iframe>
        </div>
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#tree").dynatree({
                clickFolderMode: 1,
                children: data,
                keyboard: false,
                onClick: function (node) {
                    if (node.data.href) {
                        window.open(node.data.href, node.data.target);
                    }
                },
                onPostInit: function (isReloading, isError) {
                    var node = $("#tree").dynatree("getActiveNode");
                    if (node) {
                        if (node.data.href) {
                            window.open(node.data.href, node.data.target);
                        }
                    }
                }
            });
        });
        function iframeAutoFit() {
            var ex;
            try {
                if (window != parent) {
                    var a = parent.document.getElementsByTagName("iframe");
                    for (var i = 0; i < a.length; i++) {
                        if (a[i].contentWindow == window) {
                            var h1 = 0, h2 = 0;
                            if (document.documentElement && document.documentElement.scrollHeight) {
                                h1 = document.documentElement.scrollHeight;
                            }
                            if (document.body) h2 = document.body.scrollHeight;
                            var h = Math.max(h1, h2);
                            if (window.ActiveXObject) { h += 4; }
                            else { h += 4; }
                            a[i].style.height = h + "px";
                            window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                        }
                    }
                }
            }
            catch (ex) { }
        }


    </script>

</body>
</html>
